package com.msmall.community.bbs.action.wml;

import com.msmall.community.bbs.service.SearchManager;

public class SearchAction extends BBSBaseAction{

	private static final long serialVersionUID = -788691599439340364L;

	private String searchContent;
	
	private String searchType;
	
	private SearchManager searchManager;
	
	public String search(){
		searchManager.search(page, searchContent, searchType);
		page.initPageString(getRequest());
		return SUCCESS;
	}

	/**
	 * 最热话题
	 * @return
	 */
	public String hot(){
	//	searchManager.hotTopic(page);
		page.initPageString(getRequest());
		return SUCCESS;
	}
	public String getSearchContent() {
		return searchContent;
	}

	public void setSearchContent(String searchContent) {
		this.searchContent = searchContent;
	}

	public String getSearchType() {
		return searchType;
	}

	public void setSearchType(String searchType) {
		this.searchType = searchType;
	}

	public void setSearchManager(SearchManager searchManager) {
		this.searchManager = searchManager;
	}
}
